home *** CD-ROM | disk | FTP | other *** search
- VGACAP Copr.(c) 1988 Lawrence Gozum & Marvin Gozum
- ──────────────────────────────────────────────────
-
- User manual
-
- DISCLAIMER
-
- This product is distributed AS IS. The authors specifically disclaim
- all warranties ,expressed or implied, including ,but not limited to,
- implied warranties of merchantability and fitness for a particular
- purpose with respect to defects in the diskette and documentation, and
- program license granted herein, in particular, and without limiting
- operation of the program license with respect to any particular
- application use or purpose. In no event shall the authors be liable
- for any loss of profit or any other commercial damage including but
- not limited to special,incidental, consequential or other damages.
-
-
- LICENSING AGREEMENT
-
- You may use this program on a TRIAL BASIS only; this means that you
- may freely evaluate the usefulness of this program for a reasonable
- period. Should you find this program useful, you must register (see
- last section of this manual. You will then be provided with a
- personalized copy of this utility, any newsletters and the latest
- release of VGACAD (VGA Computer Assisted Design).
-
- You may freely distribute copies of this program in its UNMODIFIED
- state provided you do not include it in other software packages, with
- the exception of distributing it as part of a bundle of Public Domain
- or shareware programs on a single diskette. In addition you may not
- charge more that $3.50 for copying and/or distributing this program in
- the absence of any recognized Users Group guidelines.
-
-
- INTRODUCTION
-
- VGA (Video Graphics Array) is now the de facto video graphics standard
- in the IBM PS/2 series (Model 50, 60 and 80). MCGA (Multi-Color
- Graphics Array) is supported by Model 30; I'm not sure what Model 25
- supports. Although VGA has a 640x480 pixel mode, it only supports a
- maximum of 16 colors - ala EGA (Enhanced Graphics Adaptor). The MCGA
- 256 color mode with a resolution of 320x200 pixels provides near-
- photographic quality as well as maintains a broad spectrum of
- compatibility with the new PS/2 machines since it not only is the
- lowest common denominator (in graphic modes) but it provides the most
- astounding results.
-
-
- WHAT IS VGACAP ?
-
- VGACAP is a terminate-stay-resident (TSR) utility that allows you to
- capture the 256 register palette and screen in the 320x200x256 color
- mode and save both the palette and screen in "Bloadable" formats. It
- combines the features of two releases by the authors - VGASCRSV and
- VGAPALSV - into one TSR. VGACAP is also very well behaved and can be
- called almost anytime.
-
- VGACAP's main purpose is to capture and save the pictures of
- commercial and shareware viewing programs as well as painting/graphics
- and CAD programs available now and in the future.
-
- The palettes of some commercial paint programs set the palette
- registers in peculiar configurations such as PC Paintbrush by ZSoft
- Corporation (I think its due to the way they have set their file
- format); for this reason, it is important to capture the palettes as
- well as the picture/screen since you will end up with a garbled
- image. VGAGIF (a shareware program by Michael Vigneau) is a viewer
- for Compuserve's GIF (Graphics Interchange Format); here you will
- notice that virtually every picture uses a different palette.
-
- VGACAD (one of the first 256 color paint/CAD shareware programs
- distributed in the Public domain) will load the captured palette, as
- soon as you rename the files to follow the *.plt extension. You can
- use those palettes in your program. You will find this particularly
- useful in trying to get all those shades that make flesh tones real !
-
-
- HOW TO USE VGACAP
-
- Simply run VGACAP before entering your painting/CAD or digitized
- picture viewer. After it is loaded, press <ALT-F10> while you are in
- your viewing or drawing/paint/CAD program and your current palette
- will be saved to your default directory and drive in the standard
- Bsave format for all BASIC programs.
-
- The first time you run the program it will save your screen and
- palette to MCAGSCRN.000 and MCGAPLET.000 respectively. It will then
- increase both extensions up to .999. If VGACAP continues to be
- resident, the latest file number will be incremented, regardless of
- the screens and palettes captured in the default directory or drive.
-
- If there is an existing MCGASCRN.xxx or MCGAPLET.xxx file, then it
- will increment to the next higher number. This can be confusing if
- you keep the captured files without renaming them since you can have
- unmatched extensions referring to the same picture. That is all there
- is to it. You can use your favorite memory managers to remove this
- TSR or reboot if you want to release it from memory.
-
-
- REQUIREMENTS
-
- You MUST have a VGA or MCGA adaptor (at least BIOS compatible) present
- and an analog monitor as well. This TSR uses less than 2K of your
- available memory (quite insignificant) !
-
- When in DOS or using a picture viewer (e.g., VGAGIF) or application
- which requires a keypress to continue, it is necessary to hit any key
- or a specified key (e.g., spacebar or return) after hitting the
- 'HOTKEY' before VGACAP saves the screen and palette.
-
-
- BLOADING the screen from BASIC
-
- The following lines will load one of the captured screens from
- QuickBASIC 4!
-
-
- SCREEN 13: 'init MCGA 256 color mode
- DEF SEG = &HA000: 'point data segment to
- 'screen buffer A0000H
- BLOAD "MCGASCRN.000", 0: 'load the screen
- DEF SEG : 'restore data segment
-
-
- If you are using QuickBASIC 1.0, 2.0 or 3.0, I have included
- VGAMODE.obj which is an object file created with MASM 4.0 which you
- can include in your UserLib.exe thorough BUILDLIB.exe.
-
- VGAMODE is a BIOS compatible assembly routine which you can use to
- call the more exotic graphic modes of your compatible VGA card (e.g.
- 800x560x16 color mode of ATI's VGA VIP and EGA Wonder); if you are
- using one then check your user manual for the correct hex codes.
-
-
- USAGE: CALL VGAMODE(&H13): 'MCGA 256 color mode
- or Call VGAMODE(mode%): 'where mode is an integer that
- 'corresponds to the videomode
- 'after translating it from HEX
-
-
- The following lines will perform just as well as the listing above.
-
-
- CALL VGAMODE(&H13): 'init MCGA 256 color mode
- DEF SEG = &HA000: 'point data segment to
- 'screen buffer A0000H
- BLOAD "MCGASCRN.000", 0: 'load the screen
- DEF SEG : 'restore data segment
-
-
- As a matter of convention, if you are using VGACAD, you should
- rename your capture screens with the .BLD extension (e.g., MYPICT.BLD)
- to load them automatically in the program.
-
-
- BLOADING the Palette from BASIC
-
- If you are using QuickBASIC (any version from 1.0 to 4.0), I have
- included WRITEPAL.obj, which is, also a VGA BIOS routines written in
- assembly, that you can include in your UserLib.exe through
- BUILDLIB.exe (v3.0 and lower) or LINK (v4.0).
-
-
- WRITEPAL is also a BIOS compatible assembly routine that writes to 256
- palette registers. Although its main purpose is to facilitate the
- overriding of the VGA or MCGA standard palette, since it is an
- all-purpose BIOS routine it will facilitate changing the palettes of
- more exotic screen modes such as the 640x480x256 color screens of
- IBM's 8514/A adaptor. This function is similar to "PALETTE USING" in
- QuickBASIC except for the advantages mentioned above.
-
- USAGE: Call WritePal (Dseg%,Offset%)
-
- WHERE: Dseg% =result of VARSEG for array storage
- Offset%=result of VARPTR for array storage
-
- The following lines illustrate its use.
-
-
- REM: Example Routine
-
- DIM UserPal%(769): ' 256 colors x 3 registers=768
- : ' registers= red grn blu
- Dseg% = VARSEG(UserPal(1)): ' get data segment
- Offset% = VARPTR(UserPal(1)): ' get offset
- DEF SEG = Dseg%: ' override data segment
- BLOAD "MCGAPLET.000", Offset%: ' bload in correct offset
- DEF SEG ;' restore data segment
- CALL WritePal(Dseg%, Offset%)
-
-
- USING VGABLD
-
- You need not go through the tedium of writing your own programs just
- to view your captured pictures. VGABLD will load a picture for
- viewing, superfast ! Your captured screen and palette MUST have the
- .BLD and .PLT extensions respectively for the same picture. For
- example, if you captured the picture LYNNEA.GIF using VGAGIF, you will
- have, at the start, MCGASCRN.000 and MCGAPLET.000 which you must
- rename as LYNNEA.BLD and LYNNEA.PLT respectively. Type "VGABLD
- LYNNEA " and your picture is up in a flash."
-
-
- Registration
-
- Registration entitles you to the latest update of VGACAP, newsletters
- when available, and the latest version of VGACAD. Send registration
- form and a $8.95 check made payable to:
-
- Marvin Gozum
- 2 Independence Place Apt. 303-2
- 6th & Locust Street
- Philadelphia, PA 19106
-
-